solving thevenin's voltage and resistance